<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="../includes/importer.jsp"%>
<!doctype html>
<html>
<head>
<ht:head />
<script src="<spring:url value="/static/js/uploadify/jquery.uploadify.js"/>" type="text/javascript" charset="utf-8"></script>
<link href="<spring:url value="/static/js/uploadify/uploadify.css"/>" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	
</script>

</head>
<body>
	<div id="content">
		<!-- forms -->
		<div class="box">
			<!-- box / title -->
			<div class="title">
				<h5>
					活动查看
				</h5>
			</div>
					<br>
			<!-- end box / title -->
			<form:form method="post" id="fm" onsubmit="return check()" commandName="ac" htmlEscape="true" acceptCharset="utf-8" cssClass="required-validate">
				<div class="form">
					<div class="fields">
						<input type="hidden" name="id" value="${ac.id }">
						<div class="field">
							<div class="label">
								<label for="name" class="req">活动名称：</label>
							</div>
							<div class="input">
								${ac.name }
							</div>
						</div>
						
						<div class="field">
							<div class="label">
								<label class="req">活动类型：</label>
							</div>
							<div class="input">
								${typeMap[ac.type] }
							</div>
						</div>
						
						<div id="orderPrice" <c:if test="${ac.type==1 }">style="display:none;"</c:if> >
							<div class="field">
								<div class="label">
									<label for="orderTotalPrice" class="req">订单满额：</label>
								</div>
								<div class="input">
									${ac.orderTotalPrice }
								</div>
							</div>
							
							<div class="field">
								<div class="label">
									<label for="freeTotalPrice" class="req">订单减额：</label>
								</div>
								<div class="input">
									${ac.freeTotalPrice }
								</div>
							</div>
						</div>
						
						<div id="orderItemNum" <c:if test="${ac.type==2 }">style="display:none;"</c:if> >
							<div class="field">
								<div class="label">
									<label for="orderItemNum" class="req">订单满件数：</label>
								</div>
								<div class="input">
									${ac.orderItemNum }
								</div>
							</div>
							
							<div class="field">
								<div class="label">
									<label for="freeItemNum" class="req">免赠件数：</label>
								</div>
								<div class="input">
									${ac.freeItemNum }
								</div>
							</div>
						</div>
						
						<div class="field">
							<div class="label">
								<label for="inputStartTime"  class="req">活动开始时间：</label>
							</div>
							<div class="input">
								<ct:time source="${ac.startTime }"/>
							</div>
						</div>
						
						<div class="field">
							<div class="label">
								<label for="inputEndTime"  class="req">活动结束时间：</label>
							</div>
							<div class="input">
								<ct:time source="${ac.endTime }"/>
							</div>
						</div>
						
					<div class="field">
                   		 <div class="label">
                    	<label for="uploadfile" class="req">活动LOGO：</label>
	                    </div>
	                    <div class="input">
	                    	<img src="${ac.imgPath }" id="logoImg" style="background: #ECE9D8" height="95" width="130">
	                    </div>
                	</div>
						
						<div class="field">
							<div class="label label-textarea">
								<label for="explain">活动介绍：</label>
							</div>
							<div class="input">
								${ac.explain }
							</div>
						</div>
						
						<div class="field">
							<div class="label">
								<label for="explain">创建时间：</label>
							</div>
							<div class="input">
								<ct:time source="${ac.createTime }"/>
							</div>
						</div>
						
						<div class="field">
							<div class="label">
								<label for="explain">审核状态：</label>
							</div>
							<div class="input">
								${auditStatusMap[ac.status] }
							</div>
						</div>
						
						<div class="field">
							<div class="label">
								<label for="explain">上线状态：</label>
							</div>
							<div class="input">
								${saleStatusMap[ac.isValid] }
							</div>
						</div>
						
						
						<div class="buttons">
							<input type="button" class="common_btn" onclick="history.back();" value="返回" />
						</div>
					</div>
				</div>
			</form:form>
		</div>
		<!-- end forms -->
	</div>
</body>
</html>